<template>
    <div class="BlackTitleSlotBox">
        <div class="BlackTitleSlot_titleBox">
            <div class="hsTitle">{{ title }}</div>
            <div v-if="showMore" class="gengduo" @click="$emit('more-click')">更多>></div>
        </div>
        <div>
            <slot name="nr"></slot>
        </div>
    </div>
</template>
<script setup>
import { ref } from 'vue'
defineProps({
    title: {
        type: String,
        default: '默认标题'
    },
    showMore: {
        type: Boolean,
        default: false
    }
})
</script>
<style scoped lang="scss">
.BlackTitleSlotBox {
    width: 100%;
    height: 100%;

    .BlackTitleSlot_titleBox {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;

        .hsTitle {
            font-weight: bold;
            font-size: 28px;
            color: #1F1F1F;
        }

        .gengduo {
            font-size: 14px;
            color: #333333;
            transition: color 0.3s ease;
            cursor: pointer;

            &:hover {
                color: $green-color !important;
            }
        }
    }
}
</style>